This data package contains the data and scripts for 7 experiments
reported as part of the article "The Frequency of Rapid Pupil
Dilations as a Measure of Linguistic Processing Difficulty" by Vera
Demberg and Asad Sayeed.

The file "scripts.R" contains all the proprocessing steps and lmer
models for obtaining the tables reported in the paper, as well as the
code for calculating the figures showing ICA values. The script also
specifies which of the data files need to be read in for which
experiment.
dual-task-data.txt and expt2data.noblink.txt are for the dual task
experiments (expt2data.noblink.txt is the version with preprocessing).
spr-data.txt contains the data for the self-paced reading experiment
1-3, and visualWorld-data.txt contains the data for the last
experiment. For the analysis of this data, the file
cond-connectorstart.txt is additionally needed. 

column headers for file expt2data.noblink.txt and dual-task-data.txt:

"absolute_time" time of system clock during experiment
"subject_name" participant id
"phaselevel" block number
"gender" participant gender
"phase" block number as integer
"phase_time" time in ms within the block
"difficulty" driving difficulty
"lateral_target_velocity" velocity of the target bar
"lateral_target_acceleration" acceleration of the target bar
"steering_deviation.x" deviation between the target and steering bars
"steering_deviation_velocity" velocity of the deviation of target and
steering bars
"steering_deviation_acceleration" acceleration of the deviation
between the bars
"lateral_steering_velocity" velocity of the subject-controlled steering bar
"LEFT_AREA" pupil area of the left eye
"LEFT_ICA_EVENT" ICA for the left eye
"RIGHT_AREA" pupil area for the right eye
"RIGHT_ICA_EVENT" ICA for the right eye
"PLAYING" a flag whether the sound file was playing at that moment in time
"ITEM_ID" item number
"CONDITION" condition code
"VOICE" not applicable
"QUESTION_TYPE" not applicable
"CORRECT_ANSWER" not applicable
"ANSWER" actual answer code
"IS_QUESTION" whether the current data point is during a question
"IS_CRITICAL" whether the current data point is during the critical region
"TIME_SINCE_CRIT_ONSET" time since the onset of the critical word
"TIME_SINCE_QUEST_ONSET" time since question onset
"TIME_SINCE_QUEST_END" time since question end
"LEFT_X" x axis fixation position left eye
"LEFT_Y" y axis fixation position left eye
"RIGHT_X" x axis fixation position right eye
"RIGHT_Y" y axis fixation position right eye
"cond" condition
"starttimes" start time of recording
"phasetimeinphase" time within a block
"target_acceleration" normalized target bar acceleration
"steering_acceleration" normalized steering bar acceleration
"abs_target_acc" absolute target bar acceleration (i.e. both left and
right acceleration are positive numbers)
"abs_steering_acc" absolute steering bar acceleration
"SHIFT_LTV" deprecated
"SHIFT_ALTA" deprecated
"steering_deviation.y" same as steering_deviation.x
"SHIFT_steerdev1600" steering deviation shifted by 1600ms
"SHIFT_LSV400" lateral steering velocity shifted by 400ms
"SHIFT_ALTA400" lateral steering acceleration shifted by 400ms
"LEFT_AREA_n" normalized left pupil area
"RIGHT_AREA_n" normalized right pupil area


spr-data.txt
"TIME" PC clock time
"LEFT_X" left eye fixation position x axis
"LEFT_Y" left eye fixation position y axis
"LEFT_AREA"      left eye pupil area
"RIGHT_X" right eye fixation position x axis
"RIGHT_Y" right eye fixation position y axis
"RIGHT_AREA" right eye pupil area
"PARTICIPANT"    participant id
"ITEM_NUMBER"	 item id
"INT_AREA" interest area (word number in sentence)
"ITEM_TYPE" condition
"EXPINDEX" word number of the sentence
"EXPWORD"  word currently displayed
"EXPKEYPRESS" answer key button press
"WORD_TIME" time passed since word appeared
"REC_TIME"       time since beginning of expt
"REC_ANSWER" button press response
"DISPLAY_TIME" time since word started being displayed
"SPACERECORD" upcoming time stamp space bar (for moving to next word) was pressed
"LEFT_ICA_EVENT" left eye ICA
"RIGHT_ICA_EVENT" right eye ICA



visualWorld-data.txt: column name descriptions

"time"  computer time stamp
"timediff" time in seconds since start of sentence
"condition" experimental condition
"region"  region of the stimulus 
"regiontime" time since start of region
"participant" participant id
"item" item id
"concessive"  simplified condition coding, i.e. whether it's concessive   
"TIME" same as time
"LEFT_X" left eye fixation position x axis
"LEFT_Y" left eye fixation position y axis
"LEFT_AREA"      left eye pupil area
"RIGHT_X" right eye fixation position x axis
"RIGHT_Y" right eye fixation position y axis
"RIGHT_AREA" right eye pupil area
"PARTICIPANT"    participant id
"WAVFILE" which sound file was played
"LEFT_ICA_EVENT" left eye's ICA
"RIGHT_ICA_EVENT" right eye's ICA
